import request from '@/utils/request'


// 商品
export function indexUrlNewGoods(data) {
    return request({
        url: '/mall/index/newGoods',
        method: 'post',
        data: data
    })
}

// 热卖商品
export function indexUrlHotGoods(data) {
    return request({
        url: '/mall/index/hotGoods',
        method: 'post',
        data: data
    })
}

// 精选主题
export function indexUrlTopic(data) {
    return request({
        url: '/mall/index/topic',
        method: 'post',
        data: data
    })
}

// 品牌制造商
export function indexUrlBrand(data) {
    return request({
        url: '/mall/index/brand',
        method: 'post',
        data: data
    })
}

// 首页底部的分类及商品列表
export function indexUrlCategory(data) {
    return request({
        url: '/mall/index/category',
        method: 'post',
        data: data
    })
}

// 首页banner
export function indexUrlBanner(data) {
    return request({
        url: '/mall/index/banner',
        method: 'post',
        data: data
    })
}

// banner下的分类
export function IndexUrlChannel(data) {
    return request({
        url: '/mall/index/channel',
        method: 'post',
        data: data
    })
}

